﻿using System.Collections.Generic;
using ZyGames.DZPocker.Model;
using ZyGames.Framework.Game.Contract;
using ZyGames.Framework.Common.Serialization;

namespace ZyGames.DZPocker.Script.CsScript.Action
{
	/// <summary>
	/// 主动推送其他玩家和房间信息给当前进入群聊的新玩家
	/// </summary>
	public class Action30084 : BaseAction
	{
		private string tableDataStr;
		public Action30084(HttpGet actionGetter)
			: base((short)ActionType.DZNotifyTalkingTableDataInfoForMe, actionGetter)
		{
		}
		public override bool GetUrlElement()
		{
			if (httpGet.GetString("TableData", ref tableDataStr))
			{
				return true;
			}
			return false;
		}

		public override bool TakeAction()
		{
			return true;
		}

		public override void BuildPacket()
		{
			this.PushIntoStack(tableDataStr);
		}
	}
}
